Robin Thicke has been handed a restraining order after his ex-wife Paula Patton accused him of alleged domestic violence.