Jelly and coffee maker JM Smucker Co. posted fourth-quarter profits that beat Wall Street expectations as higher prices helped boost the packaged food company.