Lakers legend Kobe Bryant to retire at the end of NBA season