Tens of thousands of babies were taken from their unmarried mothers in the three decades after World War Two.