US president says Berlin’s relationship with Moscow is ‘inappropriate’ in tirade on opening day of NATO summit.