The UK is “mid-negotiation” on a revised deal to hand back the Chagos Islands, a minister has said.