Rio Ferdinand has described former Manchester United team-mate Wayne Rooney as "invaluable" to England at Euro 2016 and slammed those who criticised his selection.