Diddy and Cassie have settled their lawsuit "amicably", just hours after the rap star was sued by his ex-girlfriend over allegations of abuse.