GP surgeries to be provided with in-house lawyers for patients