Primary school teachers will get training over several years to teach foreign languages such as French, German and Spanish over the coming years as part of a planned shake-up of the curriculum.