Every young person will have to do 50 hours' voluntary work by the age of 19 if Labour wins the next election.