Evidence of magnetic field decay in massive main-sequence stars