City buildings in Chicago are to be powered by 100 percent renewable energy by 2025, the city's mayor has announced.