Jack Grealish has signed a five-year contract at Aston Villa following Tottenham's failed pursuit of him this summer.