Theory for the phase behaviour of a colloidal fluid with competing interactions