Watford announce that former Inter Milan manager Walter Mazzarri is to become the club's head coach from 1 July.