A 1-per cent-accurate method to include baryonic effects in galaxy─galaxy lensing models