A retired GP who went on to continue serving the community through his role as lifeboat president has died at the age of 96.