A weight-loss jab has been approved by the UK's medicines regulator for use in preventing heart attacks and strokes in overweight or obese adults.