Merkel has said she will do all she can to try and keep Britain in the EU.