Pledge by Ed Miliband for compulsory sex education