1p rise edges Royal Mail into profit