UAE bourses regain ground after Libya-inspired sell-off