Yemen parties close to a deal to end crisis: UN