Australian Trevor Bayliss has been named the new head coach of the England cricket team and will start work next month.