Brazilian legend Rivaldo announces retirement