Theresa May has apologised to Caribbean leaders over the treatment of members of the so-called "Windrush generation" who have been threatened with deportation after decades living in the UK.