Samsung Electronics flags mobile weakness as chips power record first-quarter profit