Italy scored three first-half tries as they came from behind to beat Namibia 47-22 in their opening game of the Rugby World Cup.