Building societies have helped nearly 500,000 first-time buyers in last five years