Sir John Hamilton-Dalrymple, 5th Baronet — British Army officer and politician