Bryan Waller Procter (pseud. Barry Cornwall ) (21 November 1787 – 5 October 1874) was an English poet .