H&M posts weak sales, CEO steps down