Social media giant Facebook will update its advertising policy to restrict hateful content and explicitly ban ads that encourage racial divisions.