England have appointed former international and Warwickshire director Ashley Giles as head coach of their limited overs sides.