Rohit Sharma’s rapid half-century set up his side for a four-wicket victory despite a mid-innings collapse