Sir William Hoste, 1st Baronet — Royal Navy officer