Measurement of ultrafast structural rearrangements in hybrid perovskites