UK and EU agree to extend Brexit trade deal talks