Online platforms have responsibility for content, Ofcom bosses tell MPs