Facebook has been ordered to curb its data collection practices in Germany after a landmark ruling on Thursday that the world’s largest social network abused its market dominance to gather information about users without their consent.