Cathedral discovers Thomas Gainsborough painting hidden within vestry