Diurnal cycle of tropical precipitation in a general circulation model