Sam Allardyce was sacked as England manager having behaved "inappropriately" when seeking a sideline role while talking to undercover reporters.