Gloucester capitalise on Bath collapse