Retail lending slows down as mortgage programmes end