Across Britain, families that once felt solidly middle class are losing their footing as rents, child care costs and food prices outpace wages.