GP patient records to be shared to boost health research