Maximal regularity for parabolic equations with measurable dependence on time and applications