Brazil ‘did everything to win’ but could not stop Morocco from making history