Martin, William Fanshawe, Sir, 4th Baronet, Admiral