A guide to getting a mortgage as a first-time buyer