German President Frank-Walter Steinmeier has become the first German head of state to make a formal state visit to Britain in 27 years.