EU agrees to set out new rules for online platforms