there are diminishing returns on salary increases. you should aim to be competitive but if you raise it too high then people will stay just for the salary. their motivation changes and they can feel trapped or just start coasting.
if someone comes to you with a competing offer, you should be open to negotiation (provided they have done well in their recent perf reviews)