Sex education to be compulsory in all primary and secondary schools