Evaluating the social determinants of teenage pregnancy: a temporal analysis using a UK obstetric database from 1950 to 2010