The portrait of Coram, donated by its maker Hogarth, was the first artwork to enter the collection