European leaders have agreed to the UK's request for a three-month Brexit extension, the EU Council President Donald Tusk has tweeted.