Google has said it was investing £5 billion ($6.8 billion) in the UK over the next two years to help power the country's AI drive, ahead of a visit by US President Donald Trump.