Residents in NSW who are most at risk of drowning can learn how to swim for free under a new scheme from the state government.