John Selwyn Brooke Lloyd Baron Selwyn-Lloyd CH CBE TD PC ( 28 July 1904 18 May 1978 ) known for most of his career as Selwyn Lloyd was a British Conservative Party politician who served as Foreign Secretary from 1955 to 1960 then as Chancellor of the Exchequer until 1962 .