Children in state-funded schools, including academies and free schools, will be guaranteed age appropriate sex and relationship education under manifesto plans announced by the Liberal Democrats.