A taxi driver who caused a fatal crash after swerving into a stationary vehicle on the side of the M3 while texting has been jailed.