Burchett, Josiah, Secretary to the Admiralty