A mother accused of squeezing her baby to death has been cleared of murder.