Eight Durham wickets fall on day two after Gloucestershire are all out for 316