The main hall and statues of a century-old Buddhist temple in central Shanghai have been moved 30 metres (100 feet) on rails to ease crowding at the popular site.